package com.qf.controller;

import com.qf.pojo.BaseResult;
import com.qf.serevice.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("/order")
public class OrderController {
    @Autowired
    OrderService orderService;
    @RequestMapping(value = "/findAllOrder",method = RequestMethod.GET)
    public BaseResult findAllOrder(@RequestParam("page")Integer page, @RequestParam("size")Integer size, @RequestParam("name")String name){
        BaseResult allOrder = orderService.findAllOrder(page, size, name);
        return allOrder;

    }
}
